package com.example.librarymanagement.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.librarymanagement.entity.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author fgba
 * @since 2021-05-08
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户id查询导航栏菜单
     *
     * @param userId 用户id
     * @return 导航栏菜单Id集合
     */
    List<Integer> getNavMenuIds(Integer userId);
}
